package com.sims.action.Class;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.sims.service.ClassService;
import com.sims.util.ActionEnhanced;
import com.sims.util.Constant;

public class findClassAction extends ActionEnhanced{
	private List<com.sims.bean.Class> classList;
	@Autowired
	private ClassService classService;
	public List<com.sims.bean.Class> getClassList() {
		return classList;
	}
	public void setClassList(List<com.sims.bean.Class> classList) {
		this.classList = classList;
	}
	@Override
	public String execute() {
		result = classService.findClass(classList);
		if (result.containsKey(Constant.SUCCESS)) {
			return SUCCESS;
		}
		return ERROR;
	}
}
